package com.study.sxc.Entity;

public class MachineType {
    private Integer typeId;    // 机型ID
    private String typeName;   // 机型名称
    private String specifications; // 规格参数
    private java.math.BigDecimal hourlyRate; // 每小时费率

    public MachineType() {}

    public MachineType(Integer typeId, String typeName) {
        this.typeId = typeId;
        this.typeName = typeName;
    }

    // 全参构造方法，包含所有字段
    public MachineType(Integer typeId, String typeName, String specifications, java.math.BigDecimal hourlyRate) {
        this.typeId = typeId;
        this.typeName = typeName;
        this.specifications = specifications;
        this.hourlyRate = hourlyRate;
    }

    public Integer getTypeId() { return typeId; }
    public void setTypeId(Integer typeId) { this.typeId = typeId; }
    public String getTypeName() { return typeName; }
    public void setTypeName(String typeName) { this.typeName = typeName; }
    public String getSpecifications() { return specifications; }
    public void setSpecifications(String specifications) { this.specifications = specifications; }

    public java.math.BigDecimal getHourlyRate() { return hourlyRate; }
    public void setHourlyRate(java.math.BigDecimal hourlyRate) { this.hourlyRate = hourlyRate; }

    @Override
    public String toString() {
        return "MachineType{" +
                "typeId=" + typeId +
                ", typeName='" + typeName + '\'' +
                ", specifications='" + specifications + '\'' + // 输出规格字段
                ", hourlyRate=" + hourlyRate +
                '}';
    }
}